package com.example.shouYeController.siYunShiPinTongJi;

import com.example.shouYePoji.siYunShiPinTongJi.JiShuLei;
import com.example.shouYeService.siYunShiPinTongJi.shiXianLei.VideoSerce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class VideoController {
    @Autowired
    private VideoSerce yy;
    //获取视频总量 跨域链接前台
    @RequestMapping("bn")
    @ResponseBody
    public JiShuLei slkd(){
        return yy.getVideoTotal();
    }
}
